package com.inews.business.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


@Entity
@Table(name = "tbl_base_user")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class TblBaseUser implements java.io.Serializable {

	// Fields
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private String userId;
	private String userName;
	private String loginName;
	private String status;
	private String password;
	private String mobile;
	private String email;
	private String description;
	private String createTime;
	private String createUserId;
	private String orgId;
	private String lastUpdUserId;
	private String lastUpdDes;
	private String lastUpdTime;
	private String reserved1;
	private String reserved2;

	// Constructors

	/** default constructor */
	public TblBaseUser() {
	}

	/** minimal constructor */
	public TblBaseUser(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TblBaseUser(Long id, String userId, String userName,
			String loginName, String status, String password, String mobile,
			String email, String description, String createTime,
			String createUserId, String orgId, String lastUpdUserId,
			String lastUpdDes, String lastUpdTime, String reserved1,
			String reserved2) {
		this.id = id;
		this.userId = userId;
		this.userName = userName;
		this.loginName = loginName;
		this.status = status;
		this.password = password;
		this.mobile = mobile;
		this.email = email;
		this.description = description;
		this.createTime = createTime;
		this.createUserId = createUserId;
		this.orgId = orgId;
		this.lastUpdUserId = lastUpdUserId;
		this.lastUpdDes = lastUpdDes;
		this.lastUpdTime = lastUpdTime;
		this.reserved1 = reserved1;
		this.reserved2 = reserved2;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getLastUpdUserId() {
		return lastUpdUserId;
	}

	public void setLastUpdUserId(String lastUpdUserId) {
		this.lastUpdUserId = lastUpdUserId;
	}

	public String getLastUpdDes() {
		return lastUpdDes;
	}

	public void setLastUpdDes(String lastUpdDes) {
		this.lastUpdDes = lastUpdDes;
	}

	public String getLastUpdTime() {
		return lastUpdTime;
	}

	public void setLastUpdTime(String lastUpdTime) {
		this.lastUpdTime = lastUpdTime;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

}